<?php
$this->breadcrumbs=array(
	'Admin Panel'=>$this->createUrl( '/adminpanel'),
	'Tenant'=>array('/adminpanel/tenant/'),
	$model->idOccupancy0->idTenant=>array('/adminpanel/tenant/view','id'=>$model->idOccupancy0->idTenant),
	'Occupancy'=>$_GET['rurl'],
);


?>

<h1><?php echo $typ;  ?></h1>

<?php 


$this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		//'id',
		'PaidDate',
		array(
			'label' => 'Occupancy',
			'type'=>'raw',
			'value' =>CHtml::link(CHtml::encode($model->idOccupancy0->idRentalProperty0->AddressOne),
                                 array('/adminpanel/rentalproperty/view','id'=>$model->idOccupancy0->idRentalProperty0->id)).' : '.CHtml::link(CHtml::encode($model->idOccupancy0->idRentalUnit0->UnitNumber),
                                 array('/adminpanel/rentalproperty/view','id'=>$model->idOccupancy0->idRentalProperty0->id)),
		),
		'idOccupancy',
		'Amount',
		'Note',
		'idIncomeType0.Name',
		
		array (
			'name'=>'DueDate',
			'visible'=>($type == 'Security Deposits')? true:false,
		),
		
	),
)); ?>
